package com.viphuli.app.tool.handler;

import java.util.List;

import com.viphuli.app.tool.adapter.HolidayLeaveAdapter;
import com.viphuli.app.tool.bean.page.HolidayLeaveListPage;
import com.viphuli.app.tool.bean.part.HolidayLeave;
import com.viphuli.app.tool.fragment.HolidayLeaveSettingFragment;

/**
 * 假期列表 http Handler
 * 
 * @author li.li
 *
 */
public class HolidayLeaveListResponseHandler extends MyBaseHttpResponseHandler<HolidayLeaveSettingFragment, HolidayLeaveListPage> {

	@Override
	public void deal() {

		List<HolidayLeave> list = page.getLeaveList();

		caller.getList().clear();
		caller.getList().addAll(list);

		HolidayLeaveAdapter adapter = new HolidayLeaveAdapter(caller.getList());
		caller.setAdapter(adapter);

		caller.getListview().setAdapter(adapter);

	}

}
